<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>个人中心</title>
    <script>
        ; (function (designWidth, maxWidth) {
            var doc = document,
                win = window,
                docEl = doc.documentElement,
                remStyle = document.createElement("style"),
                tid;

            function refreshRem() {
                var width = docEl.getBoundingClientRect().width;
                maxWidth = maxWidth || 540;
                width > maxWidth && (width = maxWidth);
                var rem = width * 100 / designWidth;
                remStyle.innerHTML = 'html{font-size:' + rem + 'px;}';
            }

            if (docEl.firstElementChild) {
                docEl.firstElementChild.appendChild(remStyle);
            } else {
                var wrap = doc.createElement("div");
                wrap.appendChild(remStyle);
                doc.write(wrap.innerHTML);
                wrap = null;
            }
            //要等 wiewport 设置好后才能执行 refreshRem，不然 refreshRem 会执行2次；
            refreshRem();

            win.addEventListener("resize", function () {
                clearTimeout(tid); //防止执行两次
                tid = setTimeout(refreshRem, 300);
            }, false);

            win.addEventListener("pageshow", function (e) {
                if (e.persisted) { // 浏览器后退的时候重新计算
                    clearTimeout(tid);
                    tid = setTimeout(refreshRem, 300);
                }
            }, false);

            if (doc.readyState === "complete") {
                doc.body.style.fontSize = "16px";
            } else {
                doc.addEventListener("DOMContentLoaded", function (e) {
                    doc.body.style.fontSize = "16px";
                }, false);
            }
        })(828 , 828);
    </script>
    <link rel="stylesheet" href="./css/reset.css">
    <link rel="stylesheet" href="./css/center.css">
    <link rel="stylesheet" href="./css/common.css">
</head>
<body>
    <div class="header flex align-center justify-between">
        <div class="flex align-center">
            <img src="./imgs/logo.png" class="logo" alt="">
            <span>水利造价信息网</span>
        </div>
        <img src="./imgs/fenlei.png" class="fenlei" alt="">
    </div>
    <div class="center-bg">
        <img src="./imgs/center/geren.png" class="avatar" alt="">
        <div>姓名</div>
    </div>
    <div class="items">
        <div class="item">
            <div>
                <img src="./imgs/center/grxx.png" class="item-icon" alt="">
                <span>个人中心</span>
            </div>
            <img src="./imgs/center/gd.png" class="arrow" alt="">
        </div>
        <div class="item">
            <div>
                <img src="./imgs/center/gmjl.png" class="item-icon" alt="">
                <span>购买记录</span>
            </div>
            <img src="./imgs/center/gd.png" class="arrow" alt="">
        </div>
        <div class="item">
            <div>
                <img src="./imgs/center/gkjl.png" class="item-icon" alt="">
                <span>观看记录</span>
            </div>
            <img src="./imgs/center/gd.png" class="arrow" alt="">
        </div>
        <div class="item">
            <div>
                <img src="./imgs/center/gmsp.png" class="item-icon" alt="">
                <span>购买视频记录</span>
            </div>
            <img src="./imgs/center/gd.png" class="arrow" alt="">
        </div>
        <div class="item">
            <div>
                <img src="./imgs/center/wdjl.png" class="item-icon" alt="">
                <span>问答记录</span>
            </div>
            <img src="./imgs/center/gd.png" class="arrow" alt="">
        </div>
    </div>
    <div style="height: 1rem;">
        <div class="tabbar flex">
            <div class="tab flex1">
                <img src="./imgs/tabs/shouye.png" alt="">
                <div>首页</div>
            </div>
            <div class="tab flex1">
                <img src="./imgs/tabs/huiyuan.png" alt="">
                <div>会员注册</div>
            </div>
            <div class="tab flex1">
                <img src="./imgs/tabs/zixun.png" alt="">
                <div>在线咨询</div>
            </div>
            <div class="tab flex1">
                <img src="./imgs/tabs/gouwuche.png" alt="">
                <div>资料下载</div>
            </div>
            <div class="tab flex1">
                <img src="./imgs/tabs/py.png" alt="">
                <div>在线课堂</div>
            </div>
        </div>
    </div>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
</body>
</html>